<div id="content">
    <div id="page-heading"><h1>Chi tiết danh mục</h1></div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized"><img src="<?= base_url(); ?>images/admin_img/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized"><img src="<?= base_url(); ?>images/admin_img/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left"></td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <div class="table-content">
                        <div class="ct-sp">
                            <div class="quay_lai"><a href="<?= base_url(); ?>dienhoa-administrator/dm_san_pham/tat_ca_dm">Thoát <img src="<?= base_url(); ?>images/cancel.png" width="18" height="18" class="cancel"/></a></div>
                            <? if ($dm_view): ?>
                                <form name="fSuaSp" method="post" action="<?= base_url(); ?>dienhoa-administrator/dm_san_pham/sua_danh_muc/<?= $dm_view->PID; ?>">
                                    <table>
                                        <tr>
                                            <th class="title_infor2">Thông tin danh mục</th>
                                        </tr>
                                        <tr>
                                            <td class="col-infor">
                                                <table class="table_infor3">
                                                    <tr>
                                                        <th>Tên danh mục</th>
                                                        <td><input type="text" name="txtName" value="<?= $dm_view->PName; ?>"/><span class="errors"><? echo form_error("txtName"); ?></span></td>
                                                    <tr>
                                                    <tr>
                                                        <th>Thuộc menu?. </th>
                                                        <td  class="colEdit">
                                                            <? if ($m_menu): ?>
                                                                <div class="styled-select">
                                                                    <select name="MenuStatus" class="opt">
                                                                        <? foreach ($m_menu as $rows): ?>
                                                                            <option value="<?= $rows->menu_id;?>" <? if ($dm_view->menu_id === $rows->menu_id) echo("selected"); ?>><?= $rows->menu_name;?></option>
                                                                        <? endforeach; ?>
                                                                    </select>
                                                                </div>
                                                            <? endif; ?>
                                                            <span class="errors"><? echo form_error("MenuStatus"); ?></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th>Trạng thái. </th>
                                                        <td  class="colEdit">
                                                            <div class="styled-select">
                                                                <select name="CatStatus" class="opt">
                                                                    <option value="1" <? if ($dm_view->PStatus == 1) echo("selected"); ?>>Hiện</option>
                                                                    <option value="0" <? if ($dm_view->PStatus == 0) echo("selected"); ?>>Ẩn</option>
                                                                </select>
                                                            </div>
                                                            <span class="errors"><? echo form_error("CatStatus"); ?></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><input type="submit" value="Sửa" id="btnSua"/></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </form>
                            <? endif; ?>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right"></td>
        </tr>
        <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
        </tr>
    </table>

    <div class="clear">&nbsp;</div>
</div>
